package com.example.stu1.course.service;

import com.example.stu1.course.dao.CourseMapper;
import com.example.stu1.course.pojo.Course;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class CourseService {
    @Resource
    private CourseMapper mapper;

    public ArrayList<Course> query(){ return mapper.query(); }

    public Course get(Integer cno) { return mapper.get(cno); }
}
